export const tableOption = {
  height: 'auto',
  calcHeight: 210,
  searchShow: true,
  searchMenuSpan: 6,
  tip: false,
  border: true,
  index: true,
  addBtn: false,
  viewBtn: true,
  selection: true,
  column: [
    {
      label: "应用id",
      prop: "clientId",
      search: true,
      rules: [{
        required: true,
        message: "请输入客户端id",
        trigger: "blur"
      }]
    },
    {
      label: "应用密钥",
      prop: "clientSecret",
      search: true,
      rules: [{
        required: true,
        message: "请输入客户端密钥",
        trigger: "blur"
      }]
    },
    {
      label: "授权类型",
      prop: "authorizedGrantTypes",
      valueDefault: "refresh_token,password,authorization_code",
      rules: [{
        required: true,
        message: "请输入授权类型",
        trigger: "blur"
      }]
    },
    {
      label: "授权范围",
      prop: "scope",
      valueDefault: "all",
      rules: [{
        required: true,
        message: "请输入授权范围",
        trigger: "blur"
      }]
    },
    {
      label: "令牌秒数",
      prop: "accessTokenValidity",
      type: "number",
      valueDefault: 3600,
      rules: [{
        required: true,
        message: "请输入令牌过期秒数",
        trigger: "blur"
      }]
    },
    {
      label: "刷新秒数",
      prop: "refreshTokenValidity",
      type: "number",
      valueDefault: 604800,
      hide: true,
      rules: [{
        required: true,
        message: "请输入刷新令牌过期秒数",
        trigger: "blur"
      }]
    },
    {
      label: "回调地址",
      prop: "webServerRedirectUri",
      hide: true,
      rules: [{
        required: true,
        message: "请输入回调地址",
        trigger: "blur"
      }]
    },
    {
      label: "资源集合",
      prop: "resourceIds",
      hide: true,
      rules: [{
        message: "请输入资源集合",
        trigger: "blur"
      }]
    },
    {
      label: "权限",
      prop: "authorities",
      hide: true,
      rules: [{
        message: "请输入权限",
        trigger: "blur"
      }]
    },
    {
      label: "自动授权",
      prop: "autoapprove",
      hide: true,
      rules: [{
        message: "请输入自动授权",
        trigger: "blur"
      }]
    },
    {
      label: "附加说明",
      hide: true,
      prop: "additionalInformation",
      span: 24,
      rules: [{
        message: "请输入附加说明",
        trigger: "blur"
      }]
    },
  ]
}
